package com.ruoyi.project.data.domain;

import com.ruoyi.framework.web.domain.BaseEntity;

import java.util.Objects;

public class ExamRecords extends BaseEntity {
    private int examId;
    private String examName;
    private double examOnePrice;
    private String patiName;
    private int checkstatus;

    public ExamRecords() {
    }

    public ExamRecords(int examId, String examName, double examOnePrice, String patiName, int checkstatus) {
        this.examId = examId;
        this.examName = examName;
        this.examOnePrice = examOnePrice;
        this.patiName = patiName;
        this.checkstatus = checkstatus;
    }

    public int getExamId() {
        return examId;
    }

    public void setExamId(int examId) {
        this.examId = examId;
    }

    public String getExamName() {
        return examName;
    }

    public void setExamName(String examName) {
        this.examName = examName;
    }

    public double getExamOnePrice() {
        return examOnePrice;
    }

    public void setExamOnePrice(double examOnePrice) {
        this.examOnePrice = examOnePrice;
    }

    public String getPatiName() {
        return patiName;
    }

    public void setPatiName(String patiName) {
        this.patiName = patiName;
    }

    public int getCheckstatus() {
        return checkstatus;
    }

    public void setCheckstatus(int checkstatus) {
        this.checkstatus = checkstatus;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (!(o instanceof ExamRecords)) return false;
        ExamRecords that = (ExamRecords) o;
        return examId == that.examId &&
                examName == that.examName &&
                examOnePrice == that.examOnePrice &&
                patiName == that.patiName &&
                checkstatus == that.checkstatus;
    }

    @Override
    public int hashCode() {
        return Objects.hash(examId, examName, examOnePrice, patiName, checkstatus);
    }

    @Override
    public String toString() {
        return "ExamRecords{" +
                "examId=" + examId +
                ", examName=" + examName +
                ", examOnePrice=" + examOnePrice +
                ", patiName=" + patiName +
                ", checkstatus=" + checkstatus +
                '}';
    }
}
